package com.example.hblog.module.service;


import com.example.hblog.module.pojo.Blog;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface BlogService {
    void addBlog(Blog blog);
    List<Blog> allBlog();
    Blog showBlog(String id);
    PageInfo<Blog> getAllUsersByPage(int pageNum, int pageSize);
    PageInfo<Blog> getSearchPage(int pageNum, int pageSize,String title);
    List<Blog> searchBlog(String title);
    void editorBlog(Blog blog);
    void deleteBlog(String id);
}
